from ultralytics.models import YOLO
 
if __name__ == '__main__':
    model = YOLO(model='./yoloxxx.pt/yolo11n.pt')
    # model = YOLO(model='./runs/train/exp/weights/best.pt')
    results = model('./datasets/images/train/0082.jpg')
    # results = model.predict(source='../datasets/images/train/0011.jpg')
    for result in results:
      boxes = result.boxes
      result.show()
      # result.save(filename='./runs/detect/result.jpg')